package com.ruoyi.project.purchase.outside.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.purchase.outside.mapper.FycgzlMapper;
import com.ruoyi.project.purchase.outside.domain.Fycgzl;
import com.ruoyi.project.purchase.outside.service.IFycgzlService;

/**
 * 采购指令Service业务层处理
 * 
 * @author frank
 * @date 2024-08-20
 */
@Service
public class FycgzlServiceImpl implements IFycgzlService 
{
    @Autowired
    private FycgzlMapper fycgzlMapper;

    /**
     * 查询采购指令
     * 
     * @param fyCgzloid 采购指令主键
     * @return 采购指令
     */
    @Override
    public Fycgzl selectFycgzlByFyCgzloid(String fyCgzloid)
    {
        return fycgzlMapper.selectFycgzlByFyCgzloid(fyCgzloid);
    }

    /**
     * 查询采购指令列表
     * 
     * @param fycgzl 采购指令
     * @return 采购指令
     */
    @Override
    public List<Fycgzl> selectFycgzlList(Fycgzl fycgzl)
    {
        return fycgzlMapper.selectFycgzlList(fycgzl);
    }

    /**
     * 新增采购指令
     * 
     * @param fycgzl 采购指令
     * @return 结果
     */
    @Override
    public int insertFycgzl(Fycgzl fycgzl)
    {
        return fycgzlMapper.insertFycgzl(fycgzl);
    }

    /**
     * 修改采购指令
     * 
     * @param fycgzl 采购指令
     * @return 结果
     */
    @Override
    public int updateFycgzl(Fycgzl fycgzl)
    {
        return fycgzlMapper.updateFycgzl(fycgzl);
    }

    /**
     * 批量删除采购指令
     * 
     * @param fyCgzloids 需要删除的采购指令主键
     * @return 结果
     */
    @Override
    public int deleteFycgzlByFyCgzloids(String[] fyCgzloids)
    {
        return fycgzlMapper.deleteFycgzlByFyCgzloids(fyCgzloids);
    }

    /**
     * 删除采购指令信息
     * 
     * @param fyCgzloid 采购指令主键
     * @return 结果
     */
    @Override
    public int deleteFycgzlByFyCgzloid(String fyCgzloid)
    {
        return fycgzlMapper.deleteFycgzlByFyCgzloid(fyCgzloid);
    }
}
